package com.hzw.common;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class PageResult<T> {
    private Long total;
    private Long topTotal;
    private List<T> result = new ArrayList<T>();

    public PageResult() {
    }

    public PageResult<T> setTotal(Long t) {
        this.total = t;
        return this;
    }

    public PageResult<T> setResult(List<T> page) {
        this.result = page;
        return this;
    }
    public PageResult<T> setTopTotal(Long topTotal){
        this.topTotal = topTotal;
        return this;
    }
}
